<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8"/>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>{% block title %}{% endblock %}</title>
  
  {% load static %}
  <!-- Bootstrap core CSS -->
  <link href="{% static 'bootstrap/css/bootstrap.min.css' %}" rel="stylesheet">
  <link href="{% static 'bootstrap/css/bootstrap-theme.min.css' %}" rel="stylesheet">
  {% block headlink %}{% endblock %}
</head>

<body>

  <!-- navbar -->
  <nav class="navbar navbar-default navbar-static-top">
    <div class="container">
      <!-- 项目名称 -->
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="{% url 'billing:home' %}">EA 账单</a>
      </div>
      <!-- 主菜单 -->
      <div id="navbar" class="collapse navbar-collapse">
        <ul class="nav navbar-nav">
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Monthly <span class="caret"></span></a>
            <ul class="dropdown-menu">
              <li><a href="{% url 'billing:monthly' %}">使用量摘要</a></li>
              <li><a href="{% url 'billing:table' %}">Table</a></li>
            </ul>
          </li>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Daily <span class="caret"></span></a>
            <ul class="dropdown-menu">
              <li><a href="{% url 'billing:daily_picker' %}">每日使用量</a></li>
              <li><a href="{% url 'billing:last30days' %}">最近30天</a></li>
            </ul>
          </li>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">CPP <span class="caret"></span></a>
            <ul class="dropdown-menu">
              <li><a href="{% url 'billing:cpp_count' %}">购买建议</a></li>
            </ul>
          </li>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">其他视图 <span class="caret"></span></a>
            <ul class="dropdown-menu">
              <li><a href="{% url 'billing:screen' %}">Screen</a></li>
              <li><a href="{% url 'billing:feature' '功能一' %}">功能一</a></li>
              <li role="separator" class="divider"></li>
              <li class="dropdown-header">测试功能</li>
              <li><a href="{% url 'billing:compare' %}">月度费用验证</a></li>
              <li><a href="{% url 'billing:feature' '测试功能二' %}">测试功能二</a></li>
            </ul>
          </li>
        </ul>
        <!-- 右侧菜单 -->
        <ul class="nav navbar-nav navbar-right">
          <li><a href="{% url 'billing:about' %}">About</a></li>
          <li><a href="{% url 'admin:index' %}">后台管理</a></li>
        </ul>
      </div><!--/.nav-collapse -->
    </div>
  </nav>

  <!-- Page content -->
  <div class="container">
    {% if page_title %}
    <div class="page-header">
      <h1>{{ page_title }}</h1>
    </div>
    {% endif %}
    {% block content %}
    {% endblock %}
  </div>

  <!-- Page footer -->
  <footer class="footer">
    <div class="container">
      <p class="text-muted">© 2022</p>
    </div>
  </footer>

  <script src="{% static 'jquery/jquery-3.0.0.min.js' %}"></script>
  <script src="{% static 'bootstrap/js/bootstrap.min.js' %}"></script>
  <script src="{% static 'echarts/echarts.min.js' %}"></script>
  {% block script %}
  {% endblock %}
</body>
</html>